# -*- sh -*- 
export Here="$PWD"
export What="`basename $Here`"
export Prefix="$HOME/opt/$What"
export Tmp="$Prefix/tmp/$$"
export Bin="$Prefix/bin"
export Lib="$Prefix/lib"
export Var="$Prefix/var"
export Etc="$Here/etc"
export Gawk="$Prefix/gawk/bin/gawk"
export Pgawk="$Prefix/gawk/bin/pgawk"
export PATH="$Bin:$PATH"
export AWKPATH="$Lib:$AWKPATH"

mkdir -p $Prefix $Tmp $Var $Bin $Lib
trap "rm -rf $Tmp" TERM EXIT 

h() { cd $Here; }

want() {
    if ! which $1 > /dev/null; then 
	sudo apt-get install $2; fi;
}
here() { cd $1; basename $PWD; }

want multimarkdown libtext-multimarkdown-perl
bash $Here/bin/ready
alias ls='ls --color=auto'
PS1=" \! :-# "
export PROMPT_COMMAND='echo -n \$$What [$(here ..)/$(here .)]'
